package com.itheima.reggie.common;

import com.fasterxml.jackson.annotation.JsonValue;

public enum Sex {
    MAN("男","0"),WOMAN("女","1");

    @JsonValue
    private String sex;

    private String code;
    Sex(String sex,String code){
        this.sex = sex;
        this.code = code;
    }

    public String getSex() {
        return sex;
    }


    public String getCode() {
        return code;
    }

}

